package org.harsh.transmission.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 子传输任务对象 trans_subtask
 * 
 * @author liuhaibo
 * @date 2024-08-25
 */
public class TransSubtask extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 子传输任务ID */
    private Long subTaskId;

    /** 传输任务ID */
    @Excel(name = "传输任务ID")
    private Long taskId;

    /** 子传输任务状态 */
    @Excel(name = "子传输任务状态")
    private Long subTaskStatus;

    /** 子传输任务开始位置 */
    @Excel(name = "子传输任务开始位置")
    private Long startPos;

    /** 子传输任务长度 */
    @Excel(name = "子传输任务长度")
    private Long transSize;

    /** 开始时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "开始时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date startTime;

    /** 完成时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "完成时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date overTime;

    public void setSubTaskId(Long subTaskId) 
    {
        this.subTaskId = subTaskId;
    }

    public Long getSubTaskId() 
    {
        return subTaskId;
    }

    public void setTaskId(Long taskId) 
    {
        this.taskId = taskId;
    }

    public Long getTaskId() 
    {
        return taskId;
    }

    public void setSubTaskStatus(Long subTaskStatus) 
    {
        this.subTaskStatus = subTaskStatus;
    }

    public Long getSubTaskStatus() 
    {
        return subTaskStatus;
    }

    public void setStartPos(Long startPos) 
    {
        this.startPos = startPos;
    }

    public Long getStartPos() 
    {
        return startPos;
    }

    public void setTransSize(Long transSize) 
    {
        this.transSize = transSize;
    }

    public Long getTransSize() 
    {
        return transSize;
    }

    public void setStartTime(Date startTime) 
    {
        this.startTime = startTime;
    }

    public Date getStartTime() 
    {
        return startTime;
    }

    public void setOverTime(Date overTime) 
    {
        this.overTime = overTime;
    }

    public Date getOverTime() 
    {
        return overTime;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("subTaskId", getSubTaskId())
            .append("taskId", getTaskId())
            .append("subTaskStatus", getSubTaskStatus())
            .append("startPos", getStartPos())
            .append("transSize", getTransSize())
            .append("startTime", getStartTime())
            .append("overTime", getOverTime())
            .toString();
    }
}
